<?php $this->render("header.php");?>

    <!-- 内页子菜单-->
    <div class="nav_inner l">
    	<h2><?php echo $this->typename;?></h2>
        <ul>
        <?php
        $subtypename = "";
        foreach ($this->types[$this->cname] as $v){
        	$current = "";
        	if ($v['id'] == $this->typeid){
        		$current = 'class="current"';
        		$subtypename = $v['name'];
        	}
        	if ($v['isleaf'])
        		$url = $this->url($this->baseUrl, $this->cname, "show", "id=" . $v['leafid']);
        	else
        		$url = $this->url($this->baseUrl, $this->cname, "list", "id=" . $v['id']);
        	
        	echo "<li {$current}><a href=\"{$url}\">{$v['name']}</a></li>";
        }?>
        </ul>
             <div class="nav_inner_b oh"></div>
             		<div class="flink">
				<select onchange="if (this.value != '')window.open(this.value);">
				<option value="" selected="selected">+Quick Links</option>
				<?php
				foreach ($this->links as $v){
					echo "<option value=\"{$v['url']}\">{$v['name']}</option>";
				}
				?>				          
                  </select>
		</div>
    </div>
    <!-- /内页子菜单-->
    
	<!-- newslist-->
    <div class="inner l">
    	<div class="title_inner"><h3><?php echo $subtypename;?></h3>
			<div class="pos r"><a href="<?php echo $this->fullUrl;?>/">Home</a>&lt;<span><?php echo $this->typename;?></span></div>
        </div>
        <div class="con_inner">
        	<div class="title_news">
            	<h1><?php echo $this->content['name'];?></h1>
                <h2></h2>
               <div class="info_article">
                    <span><?php  !empty($this->content['author']) && print('Author：' . $this->content['author']);?></span>
                    <span></span>
                    <span><?php !empty($this->content['keywords']) && print('Keywords：' . $this->content['keywords']);?></span>
                    <span class="text_article"></span>    
				</div> 
            </div>
        	<div class="con_news">
            <p>
            <?php if(!empty($this->content['image'])){
            	$url = $this->baseUrl . $this->content['image'];
            echo "<img src=\"{$url}\"></p><p>";
            }?>
            <?php echo $this->content['intro'];?>
            </p>
          <?php if(!empty($this->content['pdf'])){
            	$url = $this->baseUrl . $this->content['pdf'];
            echo "<p><a href=\"{$url}\">PDF Down</a></p>";
            }?>
           <?php if(!empty($this->content['down'])){
            	$url = $this->baseUrl . $this->content['down'];
            echo "<p><a href=\"{$url}\">FULL Down</a></p>";
            }?>
            </div>
		<div class="inner_b oh"></div>  
        </div>
         
    </div>
	<!-- /newslist-->
<?php $this->render("footer.php");?>